<%--
  Created by IntelliJ IDEA.
  User: 杨大贵
  Date: 2024/4/12
  Time: 19:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梯形面积计算器</title>
    <style>
        body {
            font-family: "微软雅黑", Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
        }

        #formContainer {
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            text-align: center;
            color: #333;
        }

        label {
            display: block;
            font-size: 18px;
            color: #666;
            margin-bottom: 8px;
        }

        input[type="text"] {
            width: calc(100% - 20px);
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        input[type="submit"] {
            width: 100%;
            padding: 12px;
            margin-top: 20px;
            font-size: 18px;
            color: #fff;
            background-color: #007bff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }

        .error-message {
            color: #dc3545;
            margin-top: 5px;
        }
    </style>
</head>
<body>
<div id="formContainer">
    <h1>梯形面积计算器</h1>
    <form id="formStyle" action="calculateArea.jsp" method="post">
        <label for="top">上底：</label>
        <input type="text" id="top" name="top" required>
        <br><br>
        <label for="bottom">下底：</label>
        <input type="text" id="bottom" name="bottom" required>
        <br><br>
        <label for="height">高：</label>
        <input type="text" id="height" name="height" required>
        <br><br>
        <input type="submit" value="计算面积">
    </form>
</div>
</body>
</html>